<template>
  <div class="scroll-container" ref="scrollContainer">
    <div class="scroll-wrapper" ref="scrollWrapper">
      <slot></slot>
    </div>
  </div>
</template>

<script>
export default {
  name: 'scrollBar',
  data () {
    return {
      top: 0
    }
  },
  methods: {}
}
</script>

<style rel="stylesheet/scss" lang="scss" scoped>
@import '../../styles/variables.scss';

.scroll-container {
  position: relative;
  width: 100%;
  height: 100%;
  background-color: $menuBg;
  overflow: scroll;
  &::-webkit-scrollbar {
    width: 4px;
  }
  &::-webkit-scrollbar-track {
    background-color: #fff;
  }
  &::-webkit-scrollbar-thumb {
    background-color: #fff;
  }
  .scroll-wrapper {
    position: absolute;
    width: 100% !important;
    ::v-deep{
      .menu-wrapper {
        padding-bottom: 56px;
      }
    }
  }
}
</style>
